<div class="container-fluid">
  <div class="row">
    <div class="col-sm-2">
      <%= render "shared/sidenav" %>

    </div>
    <div class="col-sm-10">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h3 class="panel-title">选课提示</h3>
        </div>
        <div class="panel-body" style="min-height: 450px">
					<table class="table table-responsive table-condensed table-hover">
            <thead>
            <tr>
              <th>类别</th>
              <th>公共选修课</th>
							<th>一级学科普及/核心课</th>
							<th>专业普及/核心/研讨课</th>
							<th>总学分</th>
            </tr>
            </thead>

						<tbody>
						<tr>
							<th>学习要求</th>
              <th>>=2学分</th>
							<th>>=6学分</th>
							<th>>=12学分</th>
							<th>>=20学分</th>
						</tr>

						<tr>
							<th>选课情况</th>
							<td>
								<% @public_courses.each do |course| %>
								<%= course.name %>&nbsp;
								<% end %>
							</td>
							<td>
								<% @fstlevel_courses.each do |course| %>
								<%= course.name %>&nbsp;
								<% end %>
							</td>
							<td>
								<% @major_courses.each do |course| %>
								<%= course.name %>&nbsp;
								<% end %>
							</td>
							<td>
								<% current_user.courses.each do |course| %>
								<%= course.name %>&nbsp;
								<% end %>
							</td>
						</tr>

						<tr>
							<th>已选学分</th>
							<td><%= @public_credit %></td>
							<td><%= @fstlevel_credit %></td>
							<td><%= @major_credit %></td>
							<td><%= @total_credit %></td>
						</tr>
						</tbody>

					</table>
				</div>
      </div>
    </div>
  </div>
</div>
